<form id="pagerForm" method="post" action="/admin/group/" >
	<input type="hidden" name="col" value="">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="keywords" value="${page.keywords}" />
	<input type="hidden" name="numPerPage" value="${page.numPerPage}" />
	<input type="hidden" name="orderField" value="${page.orderField}" />
</form>
<h2 class="contentTitle">用户组信息</h2>
<div class="page">
		<div class="pageHeader">
		<form action="/admin/group/" method="post" onsubmit="return navTabSearch(this)">		
			<div class="searchBar">
				<ul class="searchContent">
					<li>
						<label>用户组：</label>
						<select class="combox" name="col">
							<option value="">全部</option>
						    %for i in reversed(sorted(title)):							
							  <option value="${i}" 
							  %if i == page.col:
							    selected
						      %endif
					          >${title[i]}</option>					
					        %endfor							
						</select>
						
					</li>
					<li><input type="text" name="keywords" value="${page.keywords}" />
						</li>
				</ul>
				<div class="subBar">
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
						
					</ul>
				</div>
			</div>
		</form>
		</div>	
<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="/admin/group/add" target="dialog" rel="group_add" mask=true><span>添加用户组</span></a></li>
				
				<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="/admin/group/delete/" class="delete"><span>批量删除</span></a></li>
				
				<li class="line">line</li>
				<li><a class="icon" href="doc/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导入EXCEL</span></a></li>
			</ul>
		</div>
		<table class="table" layouth="180" width="750">
			<thead>
				<tr>
					<th width="50">
						<input type="checkbox" class="checkboxCtrl" group="ids" />
					</th>
					<th width="120">操作</th>
					<th width="180">${title['group_code']}</th>
					<th width="320">${title['group_name']}</th>
					<th width="320">${title['note']}</th>						
				</tr>
			</thead>
			<tbody>
			%if list:
			%for u in list:
				<tr >
					<td><input name="ids" value="${u.group_id}" type="checkbox"></td>
					<td>
						<a class="btnEdit" href="/admin/group/edit/${u.group_id}" target="dialog" rel="group_add"  mask=true title="修改"><span>修改</span></a>
						<a class="btnDel" href="/admin/group/delete/${u.group_id}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a>
					</td>
					<td>${getattr(u,'group_code')}</td>
					<td>${getattr(u,'group_name')}</td>
					<td>${getattr(u,'note')}</td>
				</tr>
			%endfor
			%endif				
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" change="navTabPageBreak" param="numPerPage">
					%for i in ['20','50','100','200']:
					<option value="${i}" 
						%if i == page.numPerPage:
							selected
						%endif	
					>${i}</option>					
					%endfor
				</select>
				<span>共${page.totalCount}条</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="${page.totalCount}" numPerPage="${page.numPerPage}" pageNumShown="${page.pageNumShown}" currentPage="${page.currentPage}"></div>

		</div>
	</div>
</div>
